<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>incomeManage</title>
    <%@include file="/static/common/commonHead.jsp" %>
    <script type="text/javascript" src="/static/js/incomeManage/incomeManage.js"></script>
</head>
<body>
<%--工具栏--%>
<div id="tools">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadList">刷新</a>
    <input class="easyui-textbox" id="keyword" prompt="学员姓名" name="keyword">
    <input class="easyui-combobox" name="classId" id="classId" prompt="班级"
           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/class/selectAll.do'"/>
    时间:<input class="easyui-datebox" id="beginDate">&nbsp;--
    <input class="easyui-datebox" id="endDate">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchs"></a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="btn_changeState"
       data-cmd="changeState">审核</a>
    <a id="btn_edit" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a id="btn_del" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="btn_remove">删除</a>
</div>

<%--表格--%>
<table id="incomeManage_list"></table>

<%--编辑页面--%>
<div id="incomeManage_dialog">
    <form id="incomeManage_form" method="post">
        <table align="center" style="margin-top: 20px">
            <input type="hidden" name="id"/>
            <tr>
                <td>学员名称</td>
                <td>
                    <input id="clientNames" class="easyui-combobox" name="clientName.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/client/selectAllStudentOfficial.do'"/>
                </td>
            </tr>
            <tr>
                <td>班级名称</td>
                <td>
                    <input id="classname" class="easyui-textbox" name="className.id" readonly="true">
                    <%--<input type="hidden"   name="className.id" readonly="true"> --%>
                </td>


            </tr>
            <tr>
                <td>收款时间</td>
                <td>
                    <input class="easyui-datebox" name="incomeTime">
                </td>
            </tr>
            <tr>
                <td>收款金额</td>
                <td>
                    <input class="easyui-numberbox" name="incomeMoney">
                </td>
            </tr>
            <tr>
                <td>还欠学费</td>
                <td>
                    <input id="ownTuition" class="easyui-numberbox" name="debtStudent.ownTuition" readonly="true">
                </td>
            </tr>
            <tr>
                <td>收款类型</td>
                <td>
                    <input class="easyui-combobox" name="incomeType.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=payType'"/>
                </td>
            </tr>
            <tr>
                <td>收款人</td>
                <td>
                    <input class="easyui-combobox" name="incomeMan.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',url:'/employee/selectAllIncomMan.do'"/>
                </td>
            </tr>
            <tr>
                <td>单据号</td>
                <td>
                    <input class="easyui-textbox" name="receipt" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>营销人员</td>
                <td>
                    <input id="salesman" class="easyui-textbox" name="salesman.username" readonly="true">
                </td>
            </tr>
            <tr>
                <td>备注</td>
                <td>
                    <input class="easyui-textbox" name="remark">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
